#*******************************************************************
#* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        *
#*                                                                 *
#*  NOTE      = RTCP协议分析
#*  DATE      = 
#*******************************************************************

#共通参数
include         ../../../dist/dev/include/apmmodule/Makefile_comm.mk

INCLUDES        =  -I. -I$(LIB_I_APM_COMM) -I$(LIB_I_APM_MODULE)
LIBS            = -lzlog -lpthread -luuid -ljson-c
CFLAGS          = -fPIC 

CFLAGS          += $(CFLAGS_EXT)
LIBS            += $(LIBS_EXT)

include         $(APMMODULE)/Makefile_config.mk

MODULE_VERSION :=$(COMM_FRAMEWORK_VER).$(L7_VERSION)
TARGET_LIB_VER :=$(L7_NAME)_$(MODULE_VERSION).so

CFILES:=$(shell find . -name "*.c" -not -path "./tests/*")
OBJS:=$(CFILES:%.c=%.o)

all: prepare $(TARGET_LIB_VER)

.c.o:$(OBJS)
	@$(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@

$(TARGET_LIB_VER): $(OBJS)
	@$(CC) -shared -fPIC  $^ $(LIB_A_APM_MODULE) $(LIB_A_APM_COMM) -o $@ $(INCLUDES) $(LIBS)

include         $(APMMODULE)/Makefile_pre.mk

include         $(APMMODULE)/Makefile_dist.mk

#EOF

